var main = function () {
    require([
        "durandal/system",
        "durandal/app",
        "durandal/viewLocator",
    ], function (system, app, viewLocator) {
        var enableDebug = function (open) {
            //>>excludeStart("build", true);
            system.debug(open);
            //>>excludeEnd("build");
        };

        var setApp = function () {
            app.title = "Hello World";
            app.configurePlugins({
                router: true,
                dialog: true,
            });
            app.start().then(function () {
                //Replace 'viewmodels' in the moduleId with 'views' to locate the view.
                //Look for partial views in a 'views' folder in the root.
                viewLocator.useConvention();

                //Show the app by setting the root view model for our application with a transition.
                app.setRoot("shell/index", "entrance");
            });
        };

        enableDebug(true);
        setApp();
    });
};

require(["./require.config"], main);
